package org.basis.algorithm.graph.common;

import java.util.HashSet;
import java.util.Map;

/**
 * 图
 *
 * @author Mr_wenpan@163.com 2021/12/23 16:10
 */
public class Graph {
    /**
     * 该图的所有点集合
     */
    public Map<Integer, Node> nodes;
    /**
     * 该图的所有边集合
     */
    public HashSet<Edge> edges;

    public Graph(Map<Integer, Node> nodes, HashSet<Edge> edges) {
        this.nodes = nodes;
        this.edges = edges;
    }
}
